'''

'''
import json
# 在程序中用一个变量来记录当前程序启动的次数
# with open('file/count.txt', 'r') as rs:
#     count = int(rs.read())
# print(count)
# count += 1
# with open('file/count.txt', 'w') as ws:
#     ws.write(str(count))
# 练习2
# with open('file/test.txt', 'r', encoding='utf-8') as rs:
#     name = rs.read()
#     names = eval(name)
# print(name, names)
# new_name = input('name:')
# names.append(new_name)

# with open('file/test.txt', 'a', encoding='utf-8') as ws:
#     ws.write(name)
# a = 'sdadadadadasd'

# user = ['user', 'admin']
# json_user = json.dumps(user)
# with open('file/users.json', 'w') as ws:
#     ws.write(json_user)

with open('file/users.json', 'r') as rs:
    json_u = rs.read()
    user = json.loads(json_u)
    print(user)
